/**
 * @author Stéphane LaFlèche <stephane.l@vanillaforums.com>
 * @copyright 2009-2019 Vanilla Forums Inc.
 * @license GPL-2.0-only
 */

@mixin listItemStyle() {
    position: relative;

    margin: {
        left: $userContent-list_margin;
        top: 0.5em;
    }

    > &:first-child {
        margin-top: 0;
    }
    > &:last-child {
        margin-bottom: 0;
    }
}

@mixin orderedListStyle() {
    ol {
        list-style-position: inside;
        li {
            @include listItemStyle;
            list-style: decimal;
        }
    }
}

@mixin unorderedListStyle {
    ul {
        li {
            @include listItemStyle;
            list-style: initial;
        }
    }
}
